<template>
  <div class="p-card">
    <h3 class="p-card-header">{{ props.title }}</h3>
    <div class="content">
      <!-- 内容 -->
      <slot></slot>
    </div>
  </div>
</template>
<script setup>
const props = defineProps({
  title: {
    type: String,
    default: "默认",
  },
});
</script>
<style lang="scss" scoped>
.p-card {
  background: #fff;
  padding: 20px;

  .p-card-header {
    font-weight: 600;
    font-size: 18px;
    position: relative;
    padding-left: 15px;
		margin-bottom: 10px;

    &::before {
      position: absolute;
      content: "";
      left: 0;
      top: 0;
      bottom: 0;
      height: 100%;
      width: 3px;
      background: #1aa684;
    }
  }
	.content {
		padding: 10px 0;
	}
}
</style>
